package com.cy.service;

import com.cy.bean.Cartable;
import com.cy.mapper.CarTableMapper;
import com.cy.mapper.ClassTabMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarTableServiceImpl implements CarTableService{
    @Autowired
    private CarTableMapper carTableMapper;

    @Override
    public List<Cartable> getCarList(Cartable cartable) {
        return carTableMapper.getCarList(cartable);
    }

    @Override
    public int addCar(Cartable cartable) {
        int info=carTableMapper.addCar(cartable);
        return info;
    }

    @Override
    public int updateCar(Cartable cartable) {
        int info=carTableMapper.updateCar(cartable);
        return info;
    }

    @Override
    public int deleteCar(Cartable cartable) {
        int info=carTableMapper.deleteCar(cartable);
        return info;
    }
}
